﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020007CB RID: 1995
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetReplayTokenScRsp : IMessage<GetReplayTokenScRsp>, IMessage, IEquatable<GetReplayTokenScRsp>, IDeepCloneable<GetReplayTokenScRsp>, IBufferMessage
	{
		// Token: 0x1700196C RID: 6508
		// (get) Token: 0x06005995 RID: 22933 RVA: 0x000F1443 File Offset: 0x000EF643
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetReplayTokenScRsp> Parser
		{
			get
			{
				return GetReplayTokenScRsp._parser;
			}
		}

		// Token: 0x1700196D RID: 6509
		// (get) Token: 0x06005996 RID: 22934 RVA: 0x000F144A File Offset: 0x000EF64A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetReplayTokenScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700196E RID: 6510
		// (get) Token: 0x06005997 RID: 22935 RVA: 0x000F145C File Offset: 0x000EF65C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetReplayTokenScRsp.Descriptor;
			}
		}

		// Token: 0x06005998 RID: 22936 RVA: 0x000F1463 File Offset: 0x000EF663
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetReplayTokenScRsp()
		{
		}

		// Token: 0x06005999 RID: 22937 RVA: 0x000F1484 File Offset: 0x000EF684
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetReplayTokenScRsp(GetReplayTokenScRsp other) : this()
		{
			this.replayType_ = other.replayType_;
			this.retcode_ = other.retcode_;
			this.stageId_ = other.stageId_;
			this.token_ = other.token_;
			this.fJCKEOKNBJL_ = other.fJCKEOKNBJL_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600599A RID: 22938 RVA: 0x000F14E4 File Offset: 0x000EF6E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetReplayTokenScRsp Clone()
		{
			return new GetReplayTokenScRsp(this);
		}

		// Token: 0x1700196F RID: 6511
		// (get) Token: 0x0600599B RID: 22939 RVA: 0x000F14EC File Offset: 0x000EF6EC
		// (set) Token: 0x0600599C RID: 22940 RVA: 0x000F14F4 File Offset: 0x000EF6F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReplayType ReplayType
		{
			get
			{
				return this.replayType_;
			}
			set
			{
				this.replayType_ = value;
			}
		}

		// Token: 0x17001970 RID: 6512
		// (get) Token: 0x0600599D RID: 22941 RVA: 0x000F14FD File Offset: 0x000EF6FD
		// (set) Token: 0x0600599E RID: 22942 RVA: 0x000F1505 File Offset: 0x000EF705
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001971 RID: 6513
		// (get) Token: 0x0600599F RID: 22943 RVA: 0x000F150E File Offset: 0x000EF70E
		// (set) Token: 0x060059A0 RID: 22944 RVA: 0x000F1516 File Offset: 0x000EF716
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint StageId
		{
			get
			{
				return this.stageId_;
			}
			set
			{
				this.stageId_ = value;
			}
		}

		// Token: 0x17001972 RID: 6514
		// (get) Token: 0x060059A1 RID: 22945 RVA: 0x000F151F File Offset: 0x000EF71F
		// (set) Token: 0x060059A2 RID: 22946 RVA: 0x000F1527 File Offset: 0x000EF727
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Token
		{
			get
			{
				return this.token_;
			}
			set
			{
				this.token_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17001973 RID: 6515
		// (get) Token: 0x060059A3 RID: 22947 RVA: 0x000F153A File Offset: 0x000EF73A
		// (set) Token: 0x060059A4 RID: 22948 RVA: 0x000F1542 File Offset: 0x000EF742
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string FJCKEOKNBJL
		{
			get
			{
				return this.fJCKEOKNBJL_;
			}
			set
			{
				this.fJCKEOKNBJL_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x060059A5 RID: 22949 RVA: 0x000F1555 File Offset: 0x000EF755
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetReplayTokenScRsp);
		}

		// Token: 0x060059A6 RID: 22950 RVA: 0x000F1564 File Offset: 0x000EF764
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetReplayTokenScRsp other)
		{
			return other != null && (other == this || (this.ReplayType == other.ReplayType && this.Retcode == other.Retcode && this.StageId == other.StageId && !(this.Token != other.Token) && !(this.FJCKEOKNBJL != other.FJCKEOKNBJL) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060059A7 RID: 22951 RVA: 0x000F15E8 File Offset: 0x000EF7E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ReplayType != ReplayType.None)
			{
				num ^= this.ReplayType.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.StageId != 0U)
			{
				num ^= this.StageId.GetHashCode();
			}
			if (this.Token.Length != 0)
			{
				num ^= this.Token.GetHashCode();
			}
			if (this.FJCKEOKNBJL.Length != 0)
			{
				num ^= this.FJCKEOKNBJL.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060059A8 RID: 22952 RVA: 0x000F1695 File Offset: 0x000EF895
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060059A9 RID: 22953 RVA: 0x000F169D File Offset: 0x000EF89D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060059AA RID: 22954 RVA: 0x000F16A8 File Offset: 0x000EF8A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			if (this.FJCKEOKNBJL.Length != 0)
			{
				output.WriteRawTag(34);
				output.WriteString(this.FJCKEOKNBJL);
			}
			if (this.Token.Length != 0)
			{
				output.WriteRawTag(58);
				output.WriteString(this.Token);
			}
			if (this.ReplayType != ReplayType.None)
			{
				output.WriteRawTag(64);
				output.WriteEnum((int)this.ReplayType);
			}
			if (this.StageId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.StageId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060059AB RID: 22955 RVA: 0x000F1760 File Offset: 0x000EF960
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ReplayType != ReplayType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.ReplayType);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.StageId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.StageId);
			}
			if (this.Token.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Token);
			}
			if (this.FJCKEOKNBJL.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.FJCKEOKNBJL);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060059AC RID: 22956 RVA: 0x000F1808 File Offset: 0x000EFA08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetReplayTokenScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ReplayType != ReplayType.None)
			{
				this.ReplayType = other.ReplayType;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.StageId != 0U)
			{
				this.StageId = other.StageId;
			}
			if (other.Token.Length != 0)
			{
				this.Token = other.Token;
			}
			if (other.FJCKEOKNBJL.Length != 0)
			{
				this.FJCKEOKNBJL = other.FJCKEOKNBJL;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060059AD RID: 22957 RVA: 0x000F189E File Offset: 0x000EFA9E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060059AE RID: 22958 RVA: 0x000F18A8 File Offset: 0x000EFAA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 34U)
				{
					if (num == 8U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 34U)
					{
						this.FJCKEOKNBJL = input.ReadString();
						continue;
					}
				}
				else
				{
					if (num == 58U)
					{
						this.Token = input.ReadString();
						continue;
					}
					if (num == 64U)
					{
						this.ReplayType = (ReplayType)input.ReadEnum();
						continue;
					}
					if (num == 112U)
					{
						this.StageId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040022E1 RID: 8929
		private static readonly MessageParser<GetReplayTokenScRsp> _parser = new MessageParser<GetReplayTokenScRsp>(() => new GetReplayTokenScRsp());

		// Token: 0x040022E2 RID: 8930
		private UnknownFieldSet _unknownFields;

		// Token: 0x040022E3 RID: 8931
		public const int ReplayTypeFieldNumber = 8;

		// Token: 0x040022E4 RID: 8932
		private ReplayType replayType_;

		// Token: 0x040022E5 RID: 8933
		public const int RetcodeFieldNumber = 1;

		// Token: 0x040022E6 RID: 8934
		private uint retcode_;

		// Token: 0x040022E7 RID: 8935
		public const int StageIdFieldNumber = 14;

		// Token: 0x040022E8 RID: 8936
		private uint stageId_;

		// Token: 0x040022E9 RID: 8937
		public const int TokenFieldNumber = 7;

		// Token: 0x040022EA RID: 8938
		private string token_ = "";

		// Token: 0x040022EB RID: 8939
		public const int FJCKEOKNBJLFieldNumber = 4;

		// Token: 0x040022EC RID: 8940
		private string fJCKEOKNBJL_ = "";
	}
}
